package io.bdmc.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 字典数据表 实体
 * </p>
 *
 * @author 黄露
 * @since 2021-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "SysDictData对象", description = "字典数据表")
public class SysDictData extends Model<SysDictData> {

  private static final long serialVersionUID = 1L;

  // "字典编码")
  @TableId(value = "dict_code", type = IdType.AUTO)
  private Integer dictCode;

  // "字典排序")
  private Integer dictSort;

  // "字典标签")
  private String dictLabel;

  // "字典键值")
  private String dictValue;

  // "字典类型")
  private String dictType;

  // "样式属性（其他样式扩展）")
  private String cssClass;

  // "表格回显样式")
  private String listClass;

  // "是否默认（Y是 N否）")
  private String isDefault;

  // "状态（0正常 1停用）")
  private String status;

  // "创建者")
  private String createBy;

  // "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime createTime;

  // "更新者")
  private String updateBy;

  // "更新时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime updateTime;

  // "备注")
  private String remark;

  @Override
  public Serializable pkVal() {
    return this.dictCode;
  }

}
